package cn.appsys.service.front.appversion;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import cn.appsys.dao.front.appversion.FrontAppversionMapper;
import cn.appsys.pojo.AppVersion;

@Service("frontAppversionService")
public class FrontAppversionServiceimpl implements FrontAppversionService {

	@Resource
	private FrontAppversionMapper frontAppversionMapper;
	
	@Override
	public List<AppVersion> queryAppVersions(Integer id) {
		return frontAppversionMapper.queryAppVersions(id);
	}

	@Override
	public int addAppVersions(AppVersion appVersion) {
		return frontAppversionMapper.addAppVersions(appVersion);
	}

	@Override
	public AppVersion queryAppVersionKyID(Integer vid,Integer aid) {
		return frontAppversionMapper.queryAppVersionKyID(vid,aid);
	}

	@Override
	public int updateAppVersion(AppVersion appVersion) {
		return frontAppversionMapper.updateAppVersion(appVersion);
	}

	@Override
	public int updateAppVersionApk(Integer id) {
		return frontAppversionMapper.updateAppVersionApk(id);
	}

	@Override
	public int delAppVersion(Integer id) {
		return frontAppversionMapper.delAppVersion(id);
	}

}
